#ifndef JOBMEETING_H
#define JOBMEETING_H

#include "Meeting.h"

class jobMeeting : public Meeting
{
public:

	jobMeeting(const vector<string>& part,const string& subj,const string& day, int sHour, int sMin, 
		int eHour, int eMin)
		:Meeting(part,subj,day,sHour,sMin,eHour,eMin),type("job")
	{

	}

	// print out meeting data
	void printOut()const
	{
	cout << "| "<<setfill('0') << setw(2) << right << startHour << ":"  <<setw(2) << startMinute << "-";
	cout  << setw(2)<< endHour << ":"  << setw(2)<< endMinute <<setfill(' ')<<setw(3) << right<<"| "  
		<< setw(19) <<left <<meetSubject<<"| "<<setw(10)<< type << "| ";
	int j = 0;

	for( int i=0 ; i<(int)meetParticipators.size() ; i++ )
	{
		 j += (meetParticipators[i].size()+1);
		cout << meetParticipators[i] << " ";
	} 

	cout <<setw(28-j)<<right<< "| " << endl;

	for (int i=0; i<76; i++)
		cout << "-";
	cout << endl;
	}

	//getter for type
	virtual const string& getType()const
	{
		return type;
	}

protected:

	const string type;

};
#endif
